package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseByOrderSon", catalog="Id")
public class TcgPurchaseByOrderSon extends BaseEntity<TcgPurchaseByOrderSon> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="PurchasePlanSonId", nameJava="purchasePlanSonId", typeDataBase="bigint")
	private Long purchasePlanSonId;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="GoodsId", nameJava="goodsId", typeDataBase="varchar")
	private String goodsId;
	@YsField(nameDataBase="Sku", nameJava="sku", typeDataBase="varchar")
	private String sku;
	@YsField(nameDataBase="RealitySku", nameJava="realitySku", typeDataBase="varchar")
	private String realitySku;
	@YsField(nameDataBase="SkuId", nameJava="skuId", typeDataBase="varchar")
	private String skuId;
	@YsField(nameDataBase="SpecId", nameJava="specId", typeDataBase="varchar")
	private String specId;
	@YsField(nameDataBase="RealityPrice", nameJava="realityPrice", typeDataBase="decimal")
	private BigDecimal realityPrice;
	@YsField(nameDataBase="SubRealityPrice", nameJava="subRealityPrice", typeDataBase="decimal")
	private BigDecimal subRealityPrice;
	@YsField(nameDataBase="RealityCost", nameJava="realityCost", typeDataBase="decimal")
	private BigDecimal realityCost;
	@YsField(nameDataBase="SubCostPrice", nameJava="subCostPrice", typeDataBase="decimal")
	private BigDecimal subCostPrice;
	@YsField(nameDataBase="CostPriceTotal", nameJava="costPriceTotal", typeDataBase="decimal")
	private BigDecimal costPriceTotal;
	@YsField(nameDataBase="SkuCode", nameJava="skuCode", typeDataBase="varchar")
	private String skuCode;
	@YsField(nameDataBase="TradeName", nameJava="tradeName", typeDataBase="varchar")
	private String tradeName;
	@YsField(nameDataBase="SupplierId", nameJava="supplierId", typeDataBase="varchar")
	private String supplierId;
	@YsField(nameDataBase="SupplierName", nameJava="supplierName", typeDataBase="varchar")
	private String supplierName;
	@YsField(nameDataBase="NegotiatedPrice", nameJava="negotiatedPrice", typeDataBase="decimal")
	private BigDecimal negotiatedPrice;
	@YsField(nameDataBase="OrderManageStatus", nameJava="orderManageStatus", typeDataBase="varchar")
	private String orderManageStatus;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseByOrderSon setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TcgPurchaseByOrderSon setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public Long getPurchasePlanSonId() {
		return purchasePlanSonId;
	}
	public TcgPurchaseByOrderSon setPurchasePlanSonId(Long purchasePlanSonId) {
		this.purchasePlanSonId = purchasePlanSonId;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TcgPurchaseByOrderSon setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public String getGoodsId() {
		return goodsId;
	}
	public TcgPurchaseByOrderSon setGoodsId(String goodsId) {
		this.goodsId = goodsId;
		return this;
	}
	public String getSku() {
		return sku;
	}
	public TcgPurchaseByOrderSon setSku(String sku) {
		this.sku = sku;
		return this;
	}
	public String getRealitySku() {
		return realitySku;
	}
	public TcgPurchaseByOrderSon setRealitySku(String realitySku) {
		this.realitySku = realitySku;
		return this;
	}
	public String getSkuId() {
		return skuId;
	}
	public TcgPurchaseByOrderSon setSkuId(String skuId) {
		this.skuId = skuId;
		return this;
	}
	public String getSpecId() {
		return specId;
	}
	public TcgPurchaseByOrderSon setSpecId(String specId) {
		this.specId = specId;
		return this;
	}
	public BigDecimal getRealityPrice() {
		return realityPrice;
	}
	public TcgPurchaseByOrderSon setRealityPrice(BigDecimal realityPrice) {
		this.realityPrice = realityPrice;
		return this;
	}
	public BigDecimal getSubRealityPrice() {
		return subRealityPrice;
	}
	public TcgPurchaseByOrderSon setSubRealityPrice(BigDecimal subRealityPrice) {
		this.subRealityPrice = subRealityPrice;
		return this;
	}
	public BigDecimal getRealityCost() {
		return realityCost;
	}
	public TcgPurchaseByOrderSon setRealityCost(BigDecimal realityCost) {
		this.realityCost = realityCost;
		return this;
	}
	public BigDecimal getSubCostPrice() {
		return subCostPrice;
	}
	public TcgPurchaseByOrderSon setSubCostPrice(BigDecimal subCostPrice) {
		this.subCostPrice = subCostPrice;
		return this;
	}
	public BigDecimal getCostPriceTotal() {
		return costPriceTotal;
	}
	public TcgPurchaseByOrderSon setCostPriceTotal(BigDecimal costPriceTotal) {
		this.costPriceTotal = costPriceTotal;
		return this;
	}
	public String getSkuCode() {
		return skuCode;
	}
	public TcgPurchaseByOrderSon setSkuCode(String skuCode) {
		this.skuCode = skuCode;
		return this;
	}
	public String getTradeName() {
		return tradeName;
	}
	public TcgPurchaseByOrderSon setTradeName(String tradeName) {
		this.tradeName = tradeName;
		return this;
	}
	public String getSupplierId() {
		return supplierId;
	}
	public TcgPurchaseByOrderSon setSupplierId(String supplierId) {
		this.supplierId = supplierId;
		return this;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public TcgPurchaseByOrderSon setSupplierName(String supplierName) {
		this.supplierName = supplierName;
		return this;
	}
	public BigDecimal getNegotiatedPrice() {
		return negotiatedPrice;
	}
	public TcgPurchaseByOrderSon setNegotiatedPrice(BigDecimal negotiatedPrice) {
		this.negotiatedPrice = negotiatedPrice;
		return this;
	}
	public String getOrderManageStatus() {
		return orderManageStatus;
	}
	public TcgPurchaseByOrderSon setOrderManageStatus(String orderManageStatus) {
		this.orderManageStatus = orderManageStatus;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseByOrderSon setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseByOrderSon setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseByOrderSon setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseByOrderSon tcgPurchaseByOrderSon(
		Long pid,
		Long purchasePlanSonId,
		String subCode,
		String goodsId,
		String sku,
		String realitySku,
		String skuId,
		String specId,
		BigDecimal realityPrice,
		BigDecimal subRealityPrice,
		BigDecimal realityCost,
		BigDecimal subCostPrice,
		BigDecimal costPriceTotal,
		String skuCode,
		String tradeName,
		String supplierId,
		String supplierName,
		BigDecimal negotiatedPrice,
		String orderManageStatus,
		Integer status
			) {
		TcgPurchaseByOrderSon entity = new TcgPurchaseByOrderSon();
		entity.setPid(pid);
		entity.setPurchasePlanSonId(purchasePlanSonId);
		entity.setSubCode(subCode);
		entity.setGoodsId(goodsId);
		entity.setSku(sku);
		entity.setRealitySku(realitySku);
		entity.setSkuId(skuId);
		entity.setSpecId(specId);
		entity.setRealityPrice(realityPrice);
		entity.setSubRealityPrice(subRealityPrice);
		entity.setRealityCost(realityCost);
		entity.setSubCostPrice(subCostPrice);
		entity.setCostPriceTotal(costPriceTotal);
		entity.setSkuCode(skuCode);
		entity.setTradeName(tradeName);
		entity.setSupplierId(supplierId);
		entity.setSupplierName(supplierName);
		entity.setNegotiatedPrice(negotiatedPrice);
		entity.setOrderManageStatus(orderManageStatus);
		entity.setStatus(status);
		return entity;
	}
}